﻿<Card Color="Color.Primary" IsCenter="true" IsShadow="true">
    <HeaderTemplate>
        <span class="fas fa-fw fa-database"></span> 系统数据表管理工具
    </HeaderTemplate>
    <BodyTemplate>
        <RadioList TValue="string" Items="@DatabaseRadioDatas" OnSelectedChanged="@DatabaseRadioSelectedChanged" />
        <FloatingLabel DisplayText="输入命名空间" TValue="string" type="text" @bind-Value="DatabaseNameSpace" />
        @if (DatabaseCreateType == "1")
        {
            <Button Text="创建/同步数据表" class="uploadbtn" IsAsync="true" Icon="fas  fa-fw fa-shuffle" OnClick="@DatabaseCreateTask1" />
        }
        else
        {
            <Button Text="下载模板" class="uploadbtn" IsAsync="true" Icon="fas  fa-fw fa-cloud-arrow-down" OnClick="@DatabaseCreateTask2DownTemp" />
            <ButtonUpload TValue="string" ShowProgress="true" OnChange="@DatabaseCreateTask2" OnDelete="@(fileName => Task.FromResult(true))" BrowserButtonText="创建/同步数据表" BrowserButtonClass="uploadbtn" BrowserButtonIcon="fas fa-fw fa-cloud-arrow-up"></ButtonUpload>
        }
    </BodyTemplate>
</Card>